package core.service
{
public class Service
{
    private static var service:IService;
	
	/**
	 *  执行服务器方法
	 * @param request
	 * @param args     其他的request
	 * 
	 */	
	public static function invoke(request:ServiceRequest, ...args):void
	{
		service.invoke.apply(service, [ request ].concat(args));
	}
	
	/**
	 * 初始化 
	 * 
	 */	
	service_ns static function initialize():void
	{
		CONFIG::debugging
		{
			service = new DebugService();
		}
		CONFIG::release
		{
			service = new ReleaseService();
		}
	}
}
}